3.1.43 \(\int \frac {1}{\sqrt {\sec ^2(x)}} \, dx\) [43]

Optimal. Leaf size=11 \[ \frac {\tan (x)}{\sqrt {\sec ^2(x)}} \]

[Out]

tan(x)/(sec(x)^2)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {4207, 197} \begin {gather*} \frac {\tan (x)}{\sqrt {\sec ^2(x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/Sqrt[Sec[x]^2],x]

[Out]

Tan[x]/Sqrt[Sec[x]^2]

Rule 197

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[x*((a + b*x^n)^(p + 1)/a), x] /; FreeQ[{a, b, n, p}, x] &
& EqQ[1/n + p + 1, 0]

Rule 4207

Int[((b_.)*sec[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Dist[b*(ff/
f), Subst[Int[(b + b*ff^2*x^2)^(p - 1), x], x, Tan[e + f*x]/ff], x]] /; FreeQ[{b, e, f, p}, x] &&  !IntegerQ[p
]

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {\sec ^2(x)}} \, dx &=\text {Subst}\left (\int \frac {1}{\left (1+x^2\right )^{3/2}} \, dx,x,\tan (x)\right )\\ &=\frac {\tan (x)}{\sqrt {\sec ^2(x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 11, normalized size = 1.00 \begin {gather*} \frac {\tan (x)}{\sqrt {\sec ^2(x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/Sqrt[Sec[x]^2],x]

[Out]

Tan[x]/Sqrt[Sec[x]^2]

________________________________________________________________________________________

Maple [A]
time = 0.22, size = 14, normalized size = 1.27

method result size
default \(\frac {\sin \left (x \right ) \sqrt {2}}{2 \sqrt {\frac {1}{\cos \left (2 x \right )+1}}\, \cos \left (x \right )}\) \(14\)
risch \(-\frac {i {\mathrm e}^{2 i x}}{2 \sqrt {\frac {{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}+1\right )}+\frac {i}{2 \sqrt {\frac {{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}+1\right )}\) \(65\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(sec(x)^2)^(1/2),x,method=_RETURNVERBOSE)

[Out]

sin(x)/(1/cos(x)^2)^(1/2)/cos(x)

________________________________________________________________________________________

Maxima [A]
time = 0.30, size = 11, normalized size = 1.00 \begin {gather*} \frac {\tan \left (x\right )}{\sqrt {\tan \left (x\right )^{2} + 1}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(sec(x)^2)^(1/2),x, algorithm="maxima")

[Out]

tan(x)/sqrt(tan(x)^2 + 1)

________________________________________________________________________________________

Fricas [A]
time = 2.89, size = 4, normalized size = 0.36 \begin {gather*} -\sin \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(sec(x)^2)^(1/2),x, algorithm="fricas")

[Out]

-sin(x)

________________________________________________________________________________________

Sympy [A]
time = 0.19, size = 10, normalized size = 0.91 \begin {gather*} \frac {\tan {\left (x \right )}}{\sqrt {\sec ^{2}{\left (x \right )}}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(sec(x)**2)**(1/2),x)

[Out]

tan(x)/sqrt(sec(x)**2)

________________________________________________________________________________________

Giac [A]
time = 0.43, size = 6, normalized size = 0.55 \begin {gather*} \mathrm {sgn}\left (\cos \left (x\right )\right ) \sin \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(sec(x)^2)^(1/2),x, algorithm="giac")

[Out]

sgn(cos(x))*sin(x)

________________________________________________________________________________________

Mupad [B]
time = 0.16, size = 12, normalized size = 1.09 \begin {gather*} \frac {\sqrt {2}\,\sin \left (2\,x\right )}{2\,\sqrt {2\,{\cos \left (x\right )}^2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(1/cos(x)^2)^(1/2),x)

[Out]

(2^(1/2)*sin(2*x))/(2*(2*cos(x)^2)^(1/2))

________________________________________________________________________________________